package com.chazz.service.ljh.impl;

import com.chazz.dao.ljh.OrderDao;
import com.chazz.dao.ljh.impl.OrderDaoImpl;
import com.chazz.entity.*;
import com.chazz.service.ljh.OderService;

import java.util.List;

public class OrderServiceImpl implements OderService {

    OrderDao orderDao = new OrderDaoImpl();

    @Override
    public List<String> getAddress(int i) {
        return orderDao.getAddress(i);
    }

    @Override
    public Orders getOid(int id) {
        return orderDao.getOid(id);
    }



    @Override
    public List<Goods> getGoodMessage(List<Integer> gid) {
        return orderDao.getGoodMessage(gid);
    }

    @Override
    public List<Category> getCategory(List<Integer> categoryId) {
        return orderDao.getCategory(categoryId);
    }

    @Override
    public List<Brand> getBrand(List<Integer> brandId) {
        return orderDao.getBrand(brandId);
    }

    @Override
    public List<Attributekey> getAttributekey(List<Integer> categoryId) {
        return orderDao.getAttributekey(categoryId);
    }

    @Override
    public List<Value> getValue(List<Integer> attributeId) {
        return orderDao.getValue(attributeId);
    }

    @Override
    public List<Sku> getSku(List<Integer> gid) {
        return orderDao.getSku(gid);
    }

    @Override
    public List<Orderdetails> getGid(int oid) {
        return orderDao.getGid(oid);
    }

    @Override
    public boolean setOrderId(int orderId) {
        return orderDao.setOrderId(orderId);
    }

    @Override
    public boolean changeCount(List<Integer> gid, List<Integer> count) {
        return orderDao.changeCount(gid,count);
    }

    @Override
    public boolean changeState(int out_trade_no) {
        return orderDao.changeState(out_trade_no);
    }

    @Override
    public List<Orders> getOids(int uid) {
        return orderDao.getOids(uid);
    }

    @Override
    public boolean setOrder(String orderAdress, int out_trade_no) {
        return orderDao.setOrder(orderAdress,out_trade_no);
    }


}
